<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../Public/css/basic.css"/>
<link rel="stylesheet" href="../Public/css/message.css"/>
<script type="text/javascript" src="__ROOT__/Public/Jquery/jquery.js"></script>
<script type="text/javascript" src="../Public/js/sidebar.js"></script>
<script type="text/javascript" src="../Public/js/message.js"></script>
<title>三原县信息网 -- 我的消息</title>
</head>
<body>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<div id="header">
    <div class="top">
        <a href="__URL__/mySpace/user/<?php echo (cookie('user')); ?>" class="look" target="_blank">查看我的空间</a> <span><?php echo ($now); ?> <font style="color:#06f;"><?php echo ($hello); ?></font></span>
        <span class="a"><a href="__URL__/mySpace/user/<?php echo (cookie('user')); ?>" target="_blank" class="user"><?php echo (cookie('user')); ?></a> <a href="__ROOT__/member.php/Index/message/act/in" style="color:#333;">我的消息 <?php if(!empty($notread)): ?><strong><?php echo ($notread); ?></strong><?php endif; ?></a> <a href="__URL__/logout" style="color:#333;">退出</a></span>
    </div>
    <div class="logo"><a href="__ROOT__"><img src="../Public/images/logo.gif"/></a> <h3>用户中心</h3></div>
</div>
</body>
</html>
<div id="map"><img src="../Public/images/loc.gif" /> <a href="__ROOT__/member.php">用户中心</a> &gt; 我的消息</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<div id="sidebar">
    <dl>
        <dt>
        <?php if($face == ''): ?><img src="../Public/images/noavatar_small.gif" />
        <?php else: ?>
        <img src="__ROOT__/<?php echo ($face); ?>" /><?php endif; ?>
        </dt>
        <dd><a href="__ROOT__/member.php"><img src="../Public/images/house.gif" style="position:relative;top:2px;right:3px;"/>用户首页</a></dd>
        <dd><a href="__ROOT__/member.php/Index/face"><img src="../Public/images/image.gif" style="position:relative;top:4px;right:3px;"/>头像管理</a></dd>
        <dd><a href="__ROOT__/member.php/Index/userInfo"><img src="../Public/images/note.gif" style="position:relative;top:4px;right:3px;"/>完善资料</a></dd>
        <dd><a href="__ROOT__/member.php/Index/myInfo"><img src="../Public/images/info.gif" style="position:relative;top:4px;right:3px;"/>信息管理</a></dd>
        <dd><a href="__ROOT__/member.php/Index/message/act/in"><img src="../Public/images/chat.gif" style="position:relative;top:4px;right:3px;"/>我的消息</a></dd>
        <dd><a href="__ROOT__/member.php/Index/pay/act/pay"><img src="../Public/images/coins.gif" style="position:relative;top:4px;right:3px;"/>充值服务</a></dd>
        <dd><a href="__ROOT__/member.php/Index/upPass"><img src="../Public/images/password.gif" style="position:relative;top:4px;right:3px;"/>密码管理</a></dd>
    </dl>
</div>
</body>
</html>
<div id="main">
    <input type="hidden" id="root" value="__ROOT__" />
    <div class="up"> 
        <h3>我的消息</h3>
        <p class="remind" style="display:<?php echo ($s); ?>"><img src="../Public/images/valid.gif" style="position:relative;top:3px;right:3px;"/>操作成功!</p>
        <div class="tab">
            <ul>
                <li><a href="__URL__/message/act/in">收件箱</a></li>
                <li><a href="__URL__/message/act/out">发件箱</a></li>
                <li><a href="__URL__/message/act/post">发短信</a></li>
            </ul>
        </div>
        <div class="main">
            <?php if($_GET['act'] == in): if($_GET['type']): ?><ul class="details">
                    <li><span>标　题：</span>　　<?php echo ($view["title"]); ?></li>
                    <li><span>发送者：</span>　　<?php echo ($view["mfrom"]); ?></li>
                    <li><span>接收者：</span>　　<?php echo ($view["mto"]); ?></li>
                    <li><span>时　间：</span>　　<?php echo ($view["date"]); ?></li>
                    <li class="content"><span>内　容：</span>　　<?php echo ($view["content"]); ?></li>
                </ul>
                <p><input type="button" value="返　回" onclick="history.back();" id="back"></p>
                <div class="re">
                    <h4>回复此短信</h4>
                    <form method="post" class="re">
                        <dl>
                            <dd>发送给：　<input type="text" name="mto" value="<?php echo ($view["mfrom"]); ?>" class="text" readonly="readonly"/></dd>
                            <dd>标　题：　<input type="text" name="title" value="回复：<?php echo ($view["title"]); ?>" class="text"/> (标题2到20位以内)</dd>
                            <dd><span class="m">内　容：</span>　<textarea name="content"></textarea>  <span class="m">(内容300位以内)</span></dd>
                            <dd><input type="submit" name="send" value="回　复" class="sub" style="border-radius:5px;"/></dd>
                        </dl>
                    </form>
                </div>
             <?php else: ?>
            <form method="post">
                <table cellspacing="0">
                    <tr><th><input type="checkbox" id="all"></th><th>标题</th><th>发送者</th><th>发送时间</th></tr>
                    <?php if(is_array($in)): $i = 0; $__LIST__ = $in;if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><tr><td><input type="checkbox" name="select[]" class="id_select" value="<?php echo ($value["id"]); ?>"/></td>
                    <?php if(empty($value["is_read"])): ?><td><a href="./in/type/view/id/<?php echo ($value["id"]); ?>"><strong><?php echo (cuttext($value["title"],8)); ?></strong></a></td>
                    <?php else: ?>
                    <td><a href="./in/type/view/id/<?php echo ($value["id"]); ?>"><?php echo (cuttext($value["title"],8)); ?></a></td><?php endif; ?>
                    <td><a href="/member.php/Index/mySpace/user/<?php echo ($value["mfrom"]); ?>" target="_blank"><?php echo ($value["mfrom"]); ?></a></td><td><?php echo ($value["date"]); ?></td></tr><?php endforeach; endif; else: echo "$empty" ;endif; ?>
                </table>
                <input type="submit" value="删　除" name="delete" style="margin:10px 0 0 22px;width:100px;height:30px;border:1px solid #ccc;cursor:pointer;border-radius:5px;" onclick="return confirm('确认删除？') ? true : false"/>
            </form>
            <div id="page"><?php echo ($page); ?></div><?php endif; ?>
            <?php elseif($_GET['act'] == out): ?>
             <?php if($_GET['type']): ?><ul class="details">
                    <li><span>标　题：</span>　　<?php echo ($view["title"]); ?></li>
                    <li><span>发送者：</span>　　<?php echo ($view["mfrom"]); ?></li>
                    <li><span>接收者：</span>　　<?php echo ($view["mto"]); ?></li>
                    <li><span>时　间：</span>　　<?php echo ($view["date"]); ?></li>
                    <li><span>内　容：</span>　　<?php echo ($view["content"]); ?></li>
                </ul>
                <p><input type="button" value="返　回" onclick="history.back();" id="back"></p>
             <?php else: ?>
            <form method="post">
                <table cellspacing="0">
                    <tr><th><input type="checkbox" id="all"></th><th>标题</th><th>接收者</th><th>发送时间</th></tr>
                    <?php if(is_array($out)): $i = 0; $__LIST__ = $out;if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><tr><td><input type="checkbox" name="select[]" class="id_select" value="<?php echo ($value["id"]); ?>"></td><td><a href="./out/type/view/id/<?php echo ($value["id"]); ?>"><?php echo (cuttext($value["title"],8)); ?></a></td><td><a href="/member.php/Index/mySpace/user/<?php echo ($value["mto"]); ?>" target="_blank"><?php echo ($value["mto"]); ?></a></td><td><?php echo ($value["date"]); ?></td></tr><?php endforeach; endif; else: echo "$empty" ;endif; ?>
                </table>
                <input type="submit" value="删　除" name="delete" style="margin:10px 0 0 22px;width:100px;height:30px;border:1px solid #ccc;cursor:pointer;border-radius:5px;" onclick="return confirm('确认删除？') ? true : false"/>
            </form>
            <div id="page"><?php echo ($page); ?></div><?php endif; ?>
            <?php elseif($_GET['act'] == post): ?>
            <form method="post" class="post">
                <dl>
                    <dd>发送给：　<input type="text" name="mto" value="" class="text"/> (请准确填写用户名，否则信息无法发送)</dd>
                    <dd>标　题：　<input type="text" name="title" value="" class="text"/> (标题2到20位以内)</dd>
                    <dd><span class="c">内　容：</span>　<textarea name="content"></textarea>  <span class="c">(内容300位以内)</span></dd>
                    <dd><input type="submit" name="send" value="发　送" class="sub" style="border-radius:5px;"/></dd>
                </dl>
            </form><?php endif; ?>
            
            
        </div>
    </div>
</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<div id="footer">
    <p class="f">©三原县信息网 晋 ICP备12009119号</p>
    <p>Powered by 信息网 xxx.xxxx.xx</p>
</div>
</body>
</html>
</body>
</html>